home *** CD-ROM | disk | FTP | other *** search
- debug off
- ;JTL 9-17-87 23:55pm
- getscr
- clrscr
- colorfg 15
- box 6 1 75 16
- colorfg 14
-
- note
- display ' ****-'
- colorfg 13
- colorbg 1
- display 'Multiple'
- colorfg 14
- colorbg 0
- display '-File DnLoad/Logoff PCBoard V11/12.0 Qmodem 3.1-****'
- colorfg 15
- Note
- Note Instructions:
- colorfg 6
- Note Enter a filename to be downloaded after each prompt.
- Note Maximum of TWENTY (20) filenames can be entered.
- Note A blank <CR> entry starts the transfers.
- colorfg 7
- Note An Incorrect Filename is Automatically bypassed.
- Note Re-enter the correct Filename on the next File #.
- Note
- colorfg 6
- string login transfer logend dirpath correct cnt file cownt count cwnt kount
- getlog:
- colorfg 6
- display " Select Auto-Logoff after File Transfers [Y]es or [N]o ? > "
- colorfg 15
- inkey login
- displayln '$login'
- if '$login' = 'N' nlog
- if '$login' = 'Y' ylog
- goto getlog
- nlog:
- assign logend "done"
- goto home
- ylog:
- assign logend "logoff"
-
- home:
- colorfg 6
- display ' Select Download Protocol [X,C,Y,B,I,G,Z <Q>=Quit] > '
- colorfg 15
- inkey 9
- displayln '$9'
- IF '$9' = 'X' menu
- IF '$9' = 'C' menu
- IF '$9' = 'I' menu
- IF '$9' = 'Y' menu
- IF '$9' = 'B' menu
- IF '$9' = 'G' menu
- IF '$9' = 'Z' menu
- IF '$9' = 'Q' done
- goto home
-
- menu:
- selpath:
- colorfg 3
- Note Enter Download Drive:\Path DO NOT use a "\" to end the Path.
- colorfg 6
- display ' Drive:\Path > '
- colorfg 15
- get dirpath 45
- if '$dirpath' = '' selpath
- CHDIR $dirpath\
- IF $Success valid
- CHDIR $dirpath
- IF $Success valid
- colorfg 12
- displayln " Path is Invalid, Re-enter."
- colorfg 6
- goto selpath
- valid:
- colorfg 2
- display " Path is Valid."
- colorfg 6
- display ' Is Path Correct [Y]es or [N]o ? <CR>=Yes > '
- colorfg 15
- inkey correct
- displayln '$correct'
- if '$correct' = 'Y' getone
- if '$correct' = 'N' selpath
- if '$correct' <> '^M' selpath
-
- getone:
- colorfg 2
- assign cwnt 0 ;actual file counter
- assign cnt 1 ;visual file counter
- assign count 4 ;xy position counter
- goto gfiles
-
- column:
- gotoxy 28 $count
- colorfg 2
- display ' File # $cnt > '
- incr count
- goto files2
- gfiles:
- colorfg 2
- display ' File # $cnt > '
- colorfg 3
- files2:
- colorfg 3
- get file 12
- if '$file' = '' go
- push '$file'
- incr cnt
- incr cwnt
- if '$cnt' = '11' column
- if '$cnt' = '12' column
- if '$cnt' = '13' column
- if '$cnt' = '14' column
- if '$cnt' = '15' column
- if '$cnt' = '16' column
- if '$cnt' = '17' column
- if '$cnt' = '18' column
- if '$cnt' = '19' column
- if '$cnt' = '20' column
- if '$cnt' = '21' go
- goto gfiles
-
- go:
- colorfg 7
- gotoxy 1 13
- note
- display ' Online with: '
- colorbg 2
- colorfg 15
- display ' $board '
- colorbg 0
- colorfg 7
- display ' '
- colorbg 4
- colorfg 15
- display '[$9]'
- colorbg 0
- colorfg 7
- displayln ' Protocol '
- colorfg 10
- display ' $cwnt'
- colorfg 7
- if '$cwnt' = '1' one
- display ' Files will be Downloaded in Reverse order from: '
- goto skip
- one:
- display ' File will be Downloaded '
- goto cont
- skip:
- colorbg 2
- colorfg 15
- display ' $cwnt to 1 '
- colorbg 0
- colorfg 7
- cont:
- colorbg 0
- displayln ' '
- display ' '
- colorfg 0
- colorbg 6
- display "===================[ Online Text Area Below ]====================="
- colorbg 0
- colorfg 12
- box 1,17,80,$last_row
- clrscr
- colorfg 3
- timeout 60 $logend
- assign cownt $cnt
-
- start:
- send "{" ;maybe two <CRs>
- colorfg 3
- WAITFOR "Command?"
- send "d{"
- waitfor "none?"
- assign kount $cnt ;file counter in window
- next:
- decr kount
- when
- pop file
- if '$file' = '' $logend
- SEND "$file $9{"
- when "none?" next
- when "Aborts Transfer" load
- WAITFOR "Abort"
- load:
- pause 1000
- gotoxy 1 40
- display ' '
- colorbg 2
- colorfg 15
- display 'File # $kount'
- colorbg 0
- colorfg 3
- DOWNLD $dirpath\$file $9
- decr cownt
- if '$cownt' < "1" $logend
- if '$9' = 'z' tones
- goto start
-
- tones:
- beep 400
- beep 600
- beep 800
- goto start
-
- done:
- send "{"
- colorfg 10
- putscr
- exit
-
- logoff:
- putscr
- clrscr
- when
- when "Command?" logout
- send "{"
- waitfor "Command?"
-
- logout:
- pause 4500
- clrscr
- colorfg 6
- note
- Note Auto Logoff was Previously Selected.
- colorfg 15
- note
- Note PRESS [Esc] then [Y] to Abort the Logoff.
- colorfg 10
- assign 0 $wherex
- assign 1 $wherey
- assign cnt 9
- tmout:
- gotoxy $0 $1
- display ' $cnt Seconds to Auto Logoff.
- pause 200
- if '$cnt' = '2' bye
- decr cnt
- goto tmout
- bye:
- gotoxy $0 $1
- display ' 1 Second to Auto Logoff.
- pause 200
- colorfg 15
- note Auto-Logoff Completed.
- colorfg 10
- send "g{"
- pause 5000
- Hangup
- exit
-
-
-
-
-
-
-
-
-